<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::dm::strategy&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d8/d2d/namespacewheels_1_1dm.html">dm</a></li><li class="navelem"><a class="el" href="../../d4/d5f/classwheels_1_1dm_1_1strategy_3_01key_type_00_01std_1_1function_3_01_ret_07_args_8_8_8_08_01_4_01_4.html">strategy&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="../../d9/d6f/classwheels_1_1dm_1_1strategy_3_01key_type_00_01std_1_1function_3_01_ret_07_args_8_8_8_08_01_4_01_4-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::dm::strategy&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a>&gt;</code></p>
<div class="dynheader">
wheels::dm::strategy&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/dd9/classwheels_1_1dm_1_1strategy_3_01key_type_00_01std_1_1function_3_01_ret_07_args_8_8_8_08_01_4_01_4__coll__graph.png" border="0" usemap="#awheels_1_1dm_1_1strategy_3_01key_type_00_01std_1_1function_3_01_ret_07_args_8_8_8_08_01_4_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1dm_1_1strategy_3_01key_type_00_01std_1_1function_3_01_ret_07_args_8_8_8_08_01_4_01_4_coll__map" id="awheels_1_1dm_1_1strategy_3_01key_type_00_01std_1_1function_3_01_ret_07_args_8_8_8_08_01_4_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,5,181,352"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ae6a943aa1f434aee4097956b23bd182d" id="r_ae6a943aa1f434aee4097956b23bd182d"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae6a943aa1f434aee4097956b23bd182d">callee_type</a> = std::function&lt; Ret (Args...) &gt;</td></tr>
<tr class="separator:ae6a943aa1f434aee4097956b23bd182d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6e495a6802ef53134b4e0bd0f64b77c" id="r_ab6e495a6802ef53134b4e0bd0f64b77c"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab6e495a6802ef53134b4e0bd0f64b77c">iterator</a> = typename std::unordered_map&lt; keyType , <a class="el" href="#ae6a943aa1f434aee4097956b23bd182d">callee_type</a> &gt;::iterator</td></tr>
<tr class="separator:ab6e495a6802ef53134b4e0bd0f64b77c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa5a09953913fdf5e562623497373613e" id="r_aa5a09953913fdf5e562623497373613e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa5a09953913fdf5e562623497373613e">strategy</a> ()</td></tr>
<tr class="separator:aa5a09953913fdf5e562623497373613e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bddb9ebfc06f5fe85ec3a72c63e6272" id="r_a2bddb9ebfc06f5fe85ec3a72c63e6272"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2bddb9ebfc06f5fe85ec3a72c63e6272">~strategy</a> ()</td></tr>
<tr class="separator:a2bddb9ebfc06f5fe85ec3a72c63e6272"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a395457ca646efff17484574a651aeace" id="r_a395457ca646efff17484574a651aeace"><td class="memTemplParams" colspan="2">template&lt;typename Funct_t &gt; </td></tr>
<tr class="memitem:a395457ca646efff17484574a651aeace"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a395457ca646efff17484574a651aeace">add</a> (const keyType &amp;key, Funct_t &amp;&amp;callFn)</td></tr>
<tr class="memdesc:a395457ca646efff17484574a651aeace"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加算法操作  <br /></td></tr>
<tr class="separator:a395457ca646efff17484574a651aeace"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f852e13f712172a48657dd4b1016834" id="r_a1f852e13f712172a48657dd4b1016834"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1f852e13f712172a48657dd4b1016834">erase</a> (const keyType &amp;key)</td></tr>
<tr class="memdesc:a1f852e13f712172a48657dd4b1016834"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除算法操作  <br /></td></tr>
<tr class="separator:a1f852e13f712172a48657dd4b1016834"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60a0b9e2d7d3f150a718106e84cf8ed9" id="r_a60a0b9e2d7d3f150a718106e84cf8ed9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a60a0b9e2d7d3f150a718106e84cf8ed9">clear</a> ()</td></tr>
<tr class="memdesc:a60a0b9e2d7d3f150a718106e84cf8ed9"><td class="mdescLeft">&#160;</td><td class="mdescRight">清理记录  <br /></td></tr>
<tr class="separator:a60a0b9e2d7d3f150a718106e84cf8ed9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0afd53d5f41ad4f440af393a39548ab0" id="r_a0afd53d5f41ad4f440af393a39548ab0"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0afd53d5f41ad4f440af393a39548ab0">count</a> ()</td></tr>
<tr class="memdesc:a0afd53d5f41ad4f440af393a39548ab0"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取记录数量  <br /></td></tr>
<tr class="separator:a0afd53d5f41ad4f440af393a39548ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1cc34a4b5c306c0d9ab249c5ddf5c6b" id="r_ad1cc34a4b5c306c0d9ab249c5ddf5c6b"><td class="memTemplParams" colspan="2">template&lt;typename ... Params&gt; </td></tr>
<tr class="memitem:ad1cc34a4b5c306c0d9ab249c5ddf5c6b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#ad1cc34a4b5c306c0d9ab249c5ddf5c6b">call_each</a> (Params &amp;&amp;... args)</td></tr>
<tr class="memdesc:ad1cc34a4b5c306c0d9ab249c5ddf5c6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">针对所有的内容执行一次  <br /></td></tr>
<tr class="separator:ad1cc34a4b5c306c0d9ab249c5ddf5c6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ff09bb0d9c2bca5ff2969cbacae3a10" id="r_a9ff09bb0d9c2bca5ff2969cbacae3a10"><td class="memTemplParams" colspan="2">template&lt;typename ... Params&gt; </td></tr>
<tr class="memitem:a9ff09bb0d9c2bca5ff2969cbacae3a10"><td class="memTemplItemLeft" align="right" valign="top">Ret&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a9ff09bb0d9c2bca5ff2969cbacae3a10">call</a> (const keyType &amp;key, Params &amp;&amp;... args)</td></tr>
<tr class="memdesc:a9ff09bb0d9c2bca5ff2969cbacae3a10"><td class="mdescLeft">&#160;</td><td class="mdescRight">执行算法操作  <br /></td></tr>
<tr class="separator:a9ff09bb0d9c2bca5ff2969cbacae3a10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:aeb05f9e8f1d24d67ae08eb1a8bc2b0ec" id="r_aeb05f9e8f1d24d67ae08eb1a8bc2b0ec"><td class="memItemLeft" align="right" valign="top">std::unordered_map&lt; keyType, <a class="el" href="#ae6a943aa1f434aee4097956b23bd182d">callee_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeb05f9e8f1d24d67ae08eb1a8bc2b0ec">__m_strates</a></td></tr>
<tr class="separator:aeb05f9e8f1d24d67ae08eb1a8bc2b0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename keyType, typename Ret, typename ... Args&gt;<br />
class wheels::dm::strategy&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;</div>
<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00029">29</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="ae6a943aa1f434aee4097956b23bd182d" name="ae6a943aa1f434aee4097956b23bd182d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6a943aa1f434aee4097956b23bd182d">&#9670;&#160;</a></span>callee_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::callee_type = std::function&lt; Ret (Args...) &gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00031">31</a> 行定义.</p>

</div>
</div>
<a id="ab6e495a6802ef53134b4e0bd0f64b77c" name="ab6e495a6802ef53134b4e0bd0f64b77c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6e495a6802ef53134b4e0bd0f64b77c">&#9670;&#160;</a></span>iterator</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::iterator = typename std::unordered_map&lt; keyType , <a class="el" href="#ae6a943aa1f434aee4097956b23bd182d">callee_type</a> &gt;::iterator</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00032">32</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="aa5a09953913fdf5e562623497373613e" name="aa5a09953913fdf5e562623497373613e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5a09953913fdf5e562623497373613e">&#9670;&#160;</a></span>strategy()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::strategy </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<a id="a2bddb9ebfc06f5fe85ec3a72c63e6272" name="a2bddb9ebfc06f5fe85ec3a72c63e6272"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bddb9ebfc06f5fe85ec3a72c63e6272">&#9670;&#160;</a></span>~strategy()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::~<a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">strategy</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00037">37</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a395457ca646efff17484574a651aeace" name="a395457ca646efff17484574a651aeace"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a395457ca646efff17484574a651aeace">&#9670;&#160;</a></span>add()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<div class="memtemplate">
template&lt;typename Funct_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::add </td>
          <td>(</td>
          <td class="paramtype">const keyType &amp;</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Funct_t &amp;&amp;</td>          <td class="paramname"><span class="paramname"><em>callFn</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>添加算法操作 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key[</td><td>I ] , 条件判断具体条件，必须是唯一的 </td></tr>
    <tr><td class="paramname">callFn,算法函数，这是一个函数对象，可以使用lambda可以采用bind方式绑定</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00044">44</a> 行定义.</p>

</div>
</div>
<a id="a9ff09bb0d9c2bca5ff2969cbacae3a10" name="a9ff09bb0d9c2bca5ff2969cbacae3a10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ff09bb0d9c2bca5ff2969cbacae3a10">&#9670;&#160;</a></span>call()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<div class="memtemplate">
template&lt;typename ... Params&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ret <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::call </td>
          <td>(</td>
          <td class="paramtype">const keyType &amp;</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Params &amp;&amp;...</td>          <td class="paramname"><span class="paramname"><em>args</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>执行算法操作 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key[</td><td>I ], 执行调节 </td></tr>
    <tr><td class="paramname">args[</td><td>IO ], 算法参数表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">找不到合适的策略会抛出-1</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00090">90</a> 行定义.</p>

</div>
</div>
<a id="ad1cc34a4b5c306c0d9ab249c5ddf5c6b" name="ad1cc34a4b5c306c0d9ab249c5ddf5c6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1cc34a4b5c306c0d9ab249c5ddf5c6b">&#9670;&#160;</a></span>call_each()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<div class="memtemplate">
template&lt;typename ... Params&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::call_each </td>
          <td>(</td>
          <td class="paramtype">Params &amp;&amp;...</td>          <td class="paramname"><span class="paramname"><em>args</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>针对所有的内容执行一次 </p>

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00078">78</a> 行定义.</p>

</div>
</div>
<a id="a60a0b9e2d7d3f150a718106e84cf8ed9" name="a60a0b9e2d7d3f150a718106e84cf8ed9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60a0b9e2d7d3f150a718106e84cf8ed9">&#9670;&#160;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::clear </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>清理记录 </p>

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00068">68</a> 行定义.</p>

</div>
</div>
<a id="a0afd53d5f41ad4f440af393a39548ab0" name="a0afd53d5f41ad4f440af393a39548ab0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0afd53d5f41ad4f440af393a39548ab0">&#9670;&#160;</a></span>count()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::count </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>读取记录数量 </p>

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00072">72</a> 行定义.</p>

</div>
</div>
<a id="a1f852e13f712172a48657dd4b1016834" name="a1f852e13f712172a48657dd4b1016834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f852e13f712172a48657dd4b1016834">&#9670;&#160;</a></span>erase()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::erase </td>
          <td>(</td>
          <td class="paramtype">const keyType &amp;</td>          <td class="paramname"><span class="paramname"><em>key</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>移除算法操作 </p>

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00056">56</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="aeb05f9e8f1d24d67ae08eb1a8bc2b0ec" name="aeb05f9e8f1d24d67ae08eb1a8bc2b0ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb05f9e8f1d24d67ae08eb1a8bc2b0ec">&#9670;&#160;</a></span>__m_strates</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename keyType , typename Ret , typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::unordered_map&lt; keyType , <a class="el" href="#ae6a943aa1f434aee4097956b23bd182d">callee_type</a> &gt; <a class="el" href="../../d0/db2/structwheels_1_1dm_1_1strategy.html">wheels::dm::strategy</a>&lt; keyType, std::function&lt; Ret(Args...) &gt; &gt;::__m_strates</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a> 第 <a class="el" href="../../d2/d62/strategy_8hpp_source.html#l00034">34</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/designM/<a class="el" href="../../d2/d62/strategy_8hpp_source.html">strategy.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
